Skip to content

policy: admit Gemini 4 Neon at xhigh - #755

Open
Dong1017 wants to merge 1 commit into
mainfrom
policy/gemini-4-neon-admission
Open

Dong1017 wants to merge 1 commit into
mainfrom
policy/gemini-4-neon-admission

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #754

  • Accepted scope / delegation: the owner's Issue policy: admit Gemini 4 Neon (gemini-4-neon) at xhigh #754. It asks for the exact ID gemini-4-neon with no aliases, following the shape of policy: admit GPT-6.1 Terra at xhigh and max #298, policy: admit Claude Fable 5.2 at xhigh and max #439 and policy: admit GPT-6.2 Astra and GPT-6.2 Sol, stop admitting GPT-6-Astra, GPT-6.1 Sol and GPT-6.1 Terra #499.
  • What this PR delivers: one commit, 6b1d1bc7, on main 477446f6:
    • .github/knowledge-model-policy.json: a new gemini-4-neon entry with "efforts": ["xhigh"], no aliases, not suspended, and the Gemini API model page as source.
    • docs/knowledge-model-policy.md: a Gemini 4 Neon row in the owner table, thinking_level added to the line that names each vendor's effort parameter, and one paragraph. The paragraph records the 2026-11-27 doc check, says that Neon has no max level and is admitted at xhigh only, maps Google Cloud's XHIGH spelling to the declared xhigh, and lists the aliases that are not admitted.
    • tests/knowledge/test_knowledge_model_policy.py: the new cases listed in the evidence table.
  • What it does not deliver: this PR does not change the evaluator or its fixed qualifying set {xhigh, max}. It also leaves unchanged the exception process, protected paths, trusted-main policy selection and the four existing entries. It does not admit other Gemini 4 models or the allowlist-only gemini-4-neon-cyber-permissive. It does not run a model and does not qualify knowledge content.

Knowledge authorship declaration

This PR changes policy_paths only (the policy JSON and its document) and no protected knowledge path, so the declaration is disclosure only. Checks use the target branch's policy, so this PR's own status does not exercise the new entry; the tests below do.

{"schema_version":1,"head_sha":"6b1d1bc7cba70dab381ca6577594e737e827d28f","human_only":false,"material_ai_authors":[{"tool":"Claude Code","model_id":"claude-opus-5-5","effort":"xhigh","role":"author"}]}

Changed artifacts and evidence

Requirement Actual change Check / evidence and result Remaining gap
Admit gemini-4-neon, exact ID, no aliases Policy JSON entry; owner table row Official docs checked 2026-11-27 (below). test_gemini_4_neon_qualifies_at_xhigh_only: xhigh passes assess with "Declaration compliance only" None
Effort set matches the documented levels "efforts": ["xhigh"]; doc paragraph The same test: max fails with exactly Material AI author 1: effort is not allowed. test_effort_is_exact_set_membership now includes Neon: low, medium, high, none, minimal, ultra, maximum, unknown, XHIGH, MAX, xhigh , max all fail None
No inferred aliases or near misses Doc paragraph test_unknown_models_and_inferred_aliases_fail adds gemini-4, neon, Gemini 4 Neon, GEMINI-4-NEON, leading and trailing spaces, models/gemini-4-neon, gemini-4-neon-latest, gemini-4-neon-cyber-permissive and gemini-4-hydrogen; all fail None
Suspension and mixed declarations Tests only Suspension case for gemini-4-neon; a mixed declaration with gemini-4-neon at max fails in either position and reports only that author None

Doc check (2026-11-27). The pages were fetched with curl from a Linux host, because the local network cannot reach them.

  • Gemini API model page: "Model code gemini-4-neon", "Stable: gemini-4-neon", and "Thinking: Supported (low, medium, high, xhigh)". The page lists no other version or alias.
  • Gemini API thinking guide: gemini-4-neon | On (high) | low, medium, high, xhigh. No model in that table lists a max level. minimal is "Not supported on Gemini 4 models".
  • Google Cloud model page (last updated 2026-11-24 UTC): "Model ID gemini-4-neon", "Launch stage: GA", "Release date: November 18, 2026", and "Neon supports thinking levels LOW, MEDIUM, HIGH (default), and XHIGH. Setting thinking_budget or thinking_level="MINIMAL" returns an HTTP 400 validation error." The page lists gemini-4-neon-cyber-permissive as a separate model ID with allowlist-only access.
  • No paid API call or model run was made.

Open PRs (scanned 2026-11-27 before opening, 26 open). No open PR body mentions Gemini, so merging this changes no open PR's verdict.

Checks and dependencies

  • Checks actually run (result and tested scope):
    • python -m pytest -o addopts= -q -p no:cacheprovider tests/knowledge/test_knowledge_model_policy.py on head 6b1d1bc7: 229 passed. Environment: local Windows 11, Python 3.13.5, pytest 9.0.2.
    • Reverse check: with only .github/knowledge-model-policy.json restored to main, the Gemini/Neon subset (-k "gemini or neon") gives 2 failed and 22 passed. The two failures are test_gemini_4_neon_qualifies_at_xhigh_only and the gemini-4-neon suspension case, so the new tests read the new entry. The 22 rejection cases also pass on main, where any Neon declaration is rejected as unapproved.
    • uvx [email protected] check tests/knowledge/test_knowledge_model_policy.py tools/check_knowledge_model_policy.py: all checks passed. 0.17.6 is the version installed in the latest green ci-ready run (45935560246). The policy JSON parses, and git diff --check is clean.
  • Failed, skipped, timed-out or not-run checks (if applicable): The full suite and the other policy test modules were not run locally. They do not read the model list. Hosted full-check is authoritative.
  • Dependencies / shared interfaces / integration assumptions (if applicable): none beyond main. The entry takes effect for open PRs only once it is on main, because the workflow evaluates trusted main.

Remaining work and Issue closure

  • Remaining Issue requirements / follow-up: hosted CI and two approving reviews on the current head.
  • Goal-acceptance owner or accepted closure delegation: @Dong1017 (Issue owner).
  • Goal ready for acceptance? Not claimed.

Provenance

One commit on main 477446f6. No merge, amend, force push or skipped hooks. The policy JSON, document and tests were written in a Claude Code session reported as claude-opus-5-5 with effort xhigh. This is client/session attribution, not a backend attestation. Passing tests is not policy approval.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)

🤖 Generated with Claude Code

Knowledge contributions declaring gemini-4-neon currently fail model
admission. Add that exact identity, as requested by the owner, with no
aliases. The official Gemini API and Google Cloud model pages confirm the
canonical ID and list its thinking levels as low, medium, high (default)
and xhigh (checked 2026-11-27). Neon has no max level, so its admitted
effort set is xhigh only; the evaluator's qualifying set is unchanged.

Record the check, the thinking_level parameter name and the non-admitted
aliases in the policy document. Extend the admission tests: Neon passes
at xhigh and fails at max with "effort is not allowed", fails at every
other effort, rejects inferred aliases and near-miss IDs (including the
separately gated cyber-permissive variant), honours suspension, and
fails a mixed declaration in either position. The evaluator, exception
process, protected paths, existing models and trusted-main policy
selection are unchanged. This is an admission-policy change; it does
not qualify knowledge content or run a model.

Agent-assisted-by: Claude Code / claude-opus-5-5 [effort=xhigh] (author)
Signed-off-by: Dong1017 <[email protected]>
@Dong1017 Dong1017 added kind:task Bounded delivery task with a delegated slice area:knowledge Knowledge line: packs, skill library, knowledge admission labels Nov 27, 2026
@Dong1017 Dong1017 self-assigned this Nov 27, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

固定范围 477446f → 6b1d1bc。

首审 #754 的精确策略增量。对比 policy JSON 后,唯一新增条目是 gemini-4-neon,aliases 为空、未暂停、efforts 仅 xhigh;其他模型、保护路径、例外和审批人没有变化。Google 官方表明确默认 high、最高 xhigh,不含 max。说明、测试和配置一致。

独立运行固定 main 的实际 model_errors 对候选 JSON:准确 ID+xhigh 通过;默认 high、max、大小写/别名和其他变体拒绝,暂停与混合非合规作者也拒绝。未执行模型或完整工作流。正式批准只反映独立代码检视,不是例外。候选策略不会被该 PR 自己的 trusted-main 状态提前采用;合入后应核对受影响 PR 的精确 head 刷新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants